import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/demand/manage/list',
    method: 'get',
    params: data
  })
}
export function cancelList(data) {
  return request({
    url: '/demand/getStatusListForManage',
    method: 'get',
    params: data
  })
}

export function prodicingStep() {
  return request({
    url: '/producing/step/list',
    method: 'get'
  })
}


export function listByShop(data) {
  return request({
    url: '/demand/manage/shop',
    method: 'get',
    params: data
  })
}

export function listByUser(data) {
  return request({
    url: '/demand/manage/user',
    method: 'get',
    params: data
  })
}

export function item(data) {
  return request({
    url: '/demand/item',
    method: 'get',
    params: data
  })
}

export function dispatchShop(data) {
  return request({
    url: '/demand/dispatchShop',
    method: 'post',
    data
  })
}


export function addOrUpdate(data) {
  return request({
    url: '/user/addOrUpdate',
    method: 'post',
    data
  })
}


export function producing(data) {
  return request({
    url: '/demand/producing',
    method: 'post',
    params: data
  })
}
export function produceDone(data) {
  return request({
    url: '/demand/produceDone',
    method: 'post',
    params: data
  })
}